<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>HDSysCms 控制台</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="stylesheet" href="<?php echo getcdnurlhost() ?>/admin/layui/css/layui.css" media="all">
<link rel="stylesheet" href="<?php echo getcdnurlhost() ?>/admin/style/admin.css" media="all">
</head>
<body>
<div class="layui-fluid">
<div class="layui-row layui-col-space15">
<div class="layui-col-md6">
<div class="layui-card">
<div class="layui-card-header">系统基本信息</div>
<div class="layui-card-body">
<div class="layui-carousel layadmin-carousel2 layadmin-carousel layadmin-backlog">
<div carousel-item>
<ul class="layui-row layui-col-space10">
<li class="layui-col-md6">
<a lay-href="index.php?m=manage&c=Content&a=table" class="layadmin-backlog-body">
<h3>内容总数</h3>
<p><cite><?php
$param_sql="SELECT count(*)as'hangshu'from`hdsys_content` ";
$param_tmp_arr=$this->intelligence_db->intelligence_array($param_sql);
echo (int)$param_tmp_arr['hangshu'];
?>条</cite></p>
</a>
</li>
<li lay-href="index.php?m=manage&c=Category&a=table" class="layui-col-md6">
<a href="javascript:;" class="layadmin-backlog-body">
<h3>栏目总数</h3>
<p><cite><?php
$param_sql="SELECT count(*)as'hangshu'from`hdsys_list` ";
$param_tmp_arr=$this->intelligence_db->intelligence_array($param_sql);
echo (int)$param_tmp_arr['hangshu'];
?>条</cite></p>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="layui-col-md6">
<div class="layui-card">
<div class="layui-card-header">系统快捷方式</div>
<div class="layui-card-body">
<div class="layui-carousel layadmin-carousel layadmin-shortcut">
<div carousel-item>
<ul class="layui-row layui-col-space10">
<li class="layui-col-xs4">
<a lay-href="index.php?m=manage&c=Category&a=table">
<i style="font-size: 1rem;" class="layui-icon layui-icon-release"> 栏目管理</i>
<cite> </cite>
</a>
</li>
<li class="layui-col-xs4">
<a lay-href="index.php?m=manage&c=Hdsys&a=cache">
<i style="font-size: 1rem;" class="layui-icon layui-icon-app"> 清理缓存</i>
<cite></cite>
</a>
</li>
<li class="layui-col-xs4">
<a lay-href="index.php?m=manage&c=Hdsys&a=user">
<i style="font-size: 1rem;" class="layui-icon layui-icon-user"> 系统管理员</i>
<cite></cite>
</a>
</li>
<li class="layui-col-xs4">
<a lay-href="index.php?m=manage&c=Hdsys&a=setup">
<i style="font-size: 1rem;" class="layui-icon layui-icon-set-sm"> 网站设置</i>
<cite> </cite>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="layui-col-md12">
<div class="layui-row layui-col-space15">
<div class="layui-col-md8">
<div class="layui-card">
<div class="layui-card-header">系统环境信息</div>
<div class="layui-card-body">
<div class="layui-table-body layui-table-main">
<table class="layui-table" lay-even="" lay-size="lg">
<tbody>
<tr>
<td>
<div class="layui-table-cell">当前服务系统时间：</div>
</th>
<th>
<div class="layui-table-cell"><?PHP echo HOST_DATE; ?> (如果时间不对，请调整系统时间差)</div>
</th>
</tr>
<tr>
<td>
<div class="layui-table-cell">当前登录账号：</div>
</td>
<td>
<div class="layui-table-cell"><?PHP
$param_sql=sprintf("SELECT * FROM `hdsys_admin` WHERE `username` Like \"%s\"; ", get_session_value('admin_user'));
$userarr=$this->intelligence_db->intelligence_array($param_sql);
echo $userarr['username'];
?></div>
</td>
</tr>
<tr>
<td>
<div class="layui-table-cell">登陆时间：</div>
</td>
<td>
<div class="layui-table-cell"><?PHP echo $userarr['updatetime'];   ?></div>
</td>
</tr>
<tr>
<td>
<div class="layui-table-cell">登录次数：</div>
</td>
<td>
<div class="layui-table-cell"><?PHP echo $userarr['num']; ?></div>
</td>
</tr>
<tr>
<td>
<div class="layui-table-cell">系统域名地址：</div>
</td>
<td>
<div class="layui-table-cell"><?PHP echo getsysurl(); ?></div>
</td>
</tr>
<tr>
<td>
<div class="layui-table-cell">HTTP协议版本：</div>
</td>
<td>
<div class="layui-table-cell"><?PHP echo @$_SERVER['SERVER_PROTOCOL']; ?></div>
</td>
</tr>
<tr>
<td>
<div class="layui-table-cell">服务器HOST：</div>
</td>
<td>
<div class="layui-table-cell"><?PHP echo @$_SERVER['SERVER_HOST'];
echo '(';
echo @$_SERVER['SERVER_ADDR'] . ":" . @$_SERVER['SERVER_PORT']; ?>)</div>
</td>
</tr>
<tr>
<td>
<div class="layui-table-cell">程序安装目录：</div>
</td>
<td>
<div class="layui-table-cell"><?PHP echo dirname(dirname($_SERVER['SCRIPT_FILENAME'])); ?></div>
</td>
</tr>
<tr>
<td>
<div class="layui-table-cell">Web服务器：</div>
</td>
<td>
<div class="layui-table-cell"><?PHP echo  $_SERVER['SERVER_SOFTWARE']; ?></div>
</td>
</tr>
<tr>
<td>
<div class="layui-table-cell">最大执行时间：</div>
</td>
<td>
<div class="layui-table-cell"><?PHP echo ini_get('max_execution_time'); ?> seconds</div>
</td>
</tr>
<tr>
<td>
<div class="layui-table-cell">PHP 运行方式：</div>
</td>
<td>
<div class="layui-table-cell"><?PHP echo PHP_SAPI; ?></div>
</td>
</tr>
<tr>
<td>
<div class="layui-table-cell">PHP版本：</div>
</td>
<td>
<div class="layui-table-cell"><?PHP echo PHP_VERSION; ?> &nbsp;&nbsp;&nbsp; <a href="index.php?m=manage&c=Hdsys&a=phpinfo">phpInfo</a></div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="layui-col-md4">
<div class="layui-card">
<div class="layui-card-header">系统版本信息</div>
<div class="layui-card-body layui-text">
<table class="layui-table">
<colgroup>
<col width="100">
<col>
</colgroup>
<tbody>
<tr>
<td  >最新版本</td>
<td>
HDSysCms <?php echo $param_pieces[4];
echo ' (<a id="gotoup" onclick="top.gotoup()" href="#">检测升级</a>)';
?>
</td>
</tr>
<tr>
<td>当前版本</td>
<td>
HDSysCms <?php
echo HDSYS_VERSION;
?>
</td>
</tr>
<tr>
<td>技术支持</td>
<td>HDSYSCMS团队</td>
</tr>
<tr>
<td>官方网站</td>
<td style="padding-bottom: 0;">
<div class="layui-btn-container">
<a href="https://www.hdsyscms.com/" target="_blank" class="layui-btn">官方网站</a>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<?php
if ($param_pieces[7] !=NULL) {
?>
<div class="layui-card">
<div class="layui-card-header">HDSYSCMS官方公告</div>
<div class="layui-card-body layadmin-takerates">
<?php echo $param_pieces[7]; ?>
</div>
</div>
<?php
}
?>
<div class="layui-card">
<div class="layui-card-header">系统授权信息</div>
<div class="layui-card-body layui-text">
<table class="layui-table">
<colgroup>
<col width="150">
<col>
</colgroup>
<tbody>
<tr>
<td>用户名</td>
<td>
<?php echo $param_pieces[1]; ?>
</td>
</tr>
<tr>
<td>用户级别</td>
<td>
<?php
echo $param_pieces[3];
?>
</td>
</tr>
<tr>
<td>授权到期时间</td>
<td><?php
echo $param_pieces[8];
?></td>
</tr>
</tr>
<tr>
<td>授权中心</td>
<td style="padding-bottom: 0;">
<div class="layui-btn-container">
<a href="https://www.hdsyscms.com/buy.html?web" target="_blank" class="layui-btn layui-btn-danger">授权中心</a>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php adminechohtnl(); ?>
<div id="foot">Copyright © 2019-2023 <a href="https://www.HDSysCms.Com?pro" target="_blank">HDSysCms <?php echo HDSYS_VERSION; ?></a> <br>
All Rights Reserved </div>
<script src="<?php echo getcdnurlhost() ?>/admin/layui/layui.js"></script>
<script>layui.config({base: '<?php echo getcdnurlhost() ?>/admin/'}).extend({index: 'lib/index'}).use(['index', 'console'], function() {});</script>
<style>@media screen and (max-width: 800px) {.layadmin-carousel2 {background-color: rgb(255, 255, 255);height: 555px !important;}}@media screen and (max-width: 992px) {.layui-layout-admin .layui-side {transform: translate3d(-220px, 0, 0);-webkit-transform: translate3d(-220px, 0, 0);width: 220px;}.layadmin-carousel2 {background-color: rgb(255, 255, 255);height: 560px !important;}}</style>
</body>
</html>